#include <iostream>

#include <sys/types.h>
#include <signal.h>

void Usage(std::string proc){
    std::cout << "Usage" << proc << " signumber + pid" << std::endl;
}

// raise(sig) --> kill(getpid(),sig)
// abort() --> kill(getpid(),6)

// myKill -9 pid
int main(int argc, char* argv[]){

    if(argc != 3){
        Usage(argv[0]);
        exit(1);
    }
    int signumber = std::stoi(argv[1]);
    pid_t id = std::stoi(argv[2]);

    int n = ::kill(id,signumber);
    if(n < 0){
        perror("KILL");
        exit(2); 
    }


    return 0;
}